package com.G_CN06.mvc.service;

import com.G_CN06.commonUtil.commonResultConfig.CommonResult;
import com.G_CN06.mvc.entity.TestPaper;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Wu
 * @since 2023-03-07
 */
public interface TestPaperService extends IService<TestPaper> {

    TestPaper createTestPaperFromQuestions(int classId, int majorId, String name, int timeLimit, int totalScore, Map<String, Integer> questionTypes);

    CommonResult saveForTeacher(TestPaper testPaper, HttpSession session);

    CommonResult getConditionalTestPaper(String searchString);

    // Add any additional methods specific to TestPaperService here
}
